package com.mrjy.video.dao;

import com.mrjy.common.entity.VideoCommentInfo;

import java.util.List;

public interface IVideoCommentInfoDao {
	// 插入课程
	int insert(VideoCommentInfo videoCommentInfo);

	// 分页查询课程
	List<VideoCommentInfo> queryPageVideoCommentInfo(VideoCommentInfo videoCommentInfo);

	// 统计课程
	int countVideoCommentInfo(VideoCommentInfo videoCommentInfo);

	// 根据Id查询课程
	VideoCommentInfo queryById(int id);

	// 根据ID修改课程
	int updateById(VideoCommentInfo videoCommentInfo);

	// 根据ID删除课程
	int deleteByIds(int[] ids);

	// 根据ID禁用、起用课程
	int updateDisableFlag(VideoCommentInfo videoCommentInfo);
	
	List<VideoCommentInfo> queryByVideoId(int videoId);
	List<VideoCommentInfo> queryPageByVideoId(VideoCommentInfo comment);
	int countByVideoId(int videoId);

	List<VideoCommentInfo> queryPageByVideoVideoId(VideoCommentInfo comment);
	int countByVideoVideoId(VideoCommentInfo comment);

	List<VideoCommentInfo> queryPageCommentsByVideoId(VideoCommentInfo comment);

    int queryCountCommentsByVideoId(VideoCommentInfo comment);

    List<VideoCommentInfo> queryVideoComments();
}
